<?php 
    Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/scripts/jquery.picasa.js');
?>
<style type="text/css">
	/* jQuery lightBox plugin - Gallery style */
	#gallery {
		margin-left:-5px;
	}
	#gallery ul { list-style: none; }
	#gallery ul li {	   
       display: inline;
    }
    
    #gallery img{
        border: 1px #999 solid;
        margin:3px;
        width:132px;
        
    }
	
    #gallery ul li a, #gallery > ul>li>a:hover {
        border: none;
        text-decoration: none;
    }

   
	</style>	
	<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/scripts/jquery.lightbox-0.5.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl;?>/css/jquery.lightbox-0.5.css" media="screen" />

<script>
$(function(){    
    $setted = false;
    $("a[rel*=album_group]").live('click',function(e){
       e.preventDefault();
       if(!$setted){
        $("a[rel*=album_group]").lightBox();
        $setted = true;
       } 
    });
    
    $("#gallery").picasaGallery(
        '<?php echo Yii::app()->params['picasa.user.id'];?>',
        '<?php echo $album;?>', false, function(){                   
        });    
});
</script>
<div id="gallery" class="span5"></div>
